package com.ego.controller;

import com.ego.service.PortalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Title
 * @Author Lyg
 * @Description:
 */
@Controller
public class PortalControler {

    @Autowired
    private PortalService portalService;

    @RequestMapping("/")
    public String welcome(Model model) {
        model.addAttribute("ad1",portalService.showBigAd());
        return "index";

    }

}
